package cn.iocoder.yudao.module.def.controller.admin.mysql.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - MySQL数据备份新增/修改 Request VO")
@Data
public class BackupsSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "21988")
    private Integer id;

    @Schema(description = "数据库IP")
    private String mysqlIp;

    @Schema(description = "数据库端口")
    private String mysqlPort;

    @Schema(description = "备份命令")
    private String mysqlCmd;

    @Schema(description = "恢复命令")
    private String mysqlBackCmd;

    @Schema(description = "数据库名称", example = "王五")
    private String databaseName;

    @Schema(description = "备份数据地址")
    private String backupsPath;

    @Schema(description = "备份文件名称", example = "赵六")
    private String backupsName;

    @Schema(description = "操作次数")
    private Integer operation;

    @Schema(description = "数据状态（1正常，-1删除）", example = "2")
    private Integer status;

    @Schema(description = "恢复时间")
    private LocalDateTime recoveryTime;

}